﻿/**
* File: TpmdeptEditModel.cs
* Author: 汪杰
* Create Time:2021-06-07 22:35:55
* Email:15200358008@139.com
* 代码由TMCodeGenerator自动生成
**/
using JSLCloud.Attributes;
using JSLCloud.DBModel;
using System.ComponentModel.DataAnnotations;

namespace JSLCloud.App.Models.Tpmdept
{
    /// <summary>
    /// t_pm_dept Edit Model
    /// </summary>
    [UseAutoMapper(typeof(TpmdeptDbModel))]
    public class TpmdeptEditModel
    {
        /// <summary>
        /// 主键自增长
        /// </summary>
        [Required]
        public int ID { get; set; }
        
        /// <summary>
        /// 部门名称
        /// </summary>
        [Required]
        [StringLength(maximumLength:20)]
        public string DeptName { get; set; }
        
        /// <summary>
        /// 部门状态 
        /// </summary>
        [Required]
        public bool Status { get; set; }
        
        /// <summary>
        /// 部门说明
        /// </summary>
        [StringLength(maximumLength:50)]
        public string DeptDesc { get; set; }

        /// <summary>
        /// 上级部门
        /// </summary>
        public int Pid { get; set; }
    }
}
